Don't schedule work for reboot if work is already scheduled. This fixes a
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 30 Oct 2005 12:52:38 +0000 (13:52 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 30 Oct 2005 12:52:38 +0000 (13:52 +0100)
commitd4a37a51afb971fcfa30253ace0dbd854c275e50
treed43eb27cfc4a4945ba0b1010934711c0666ff4eb
parent77e1fe3493cd6b4ff21c02a3bbb1543e1d09a589
Don't schedule work for reboot if work is already scheduled.  This fixes a
problem whereby migrated domains would shut themselves down immediately,
because the watch from the removal of the control/shutdown node would fire
after the workqueue had started, but before the domain was suspended, meaning
that an additional piece of work was scheduled, which ran immediately after the
domain was resumed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c